	function further(className, pid) {
		var index = pid.replace(className, "");
		if (className == 'jobsubmit') {
			$confirm.modal();
			ptid = ldata[index].id;
		}
	}
function changepage(a) {
	if (a.innerHTML === '第一页')
		currentpage = 1;
	else if (a.innerHTML === '最末页')
		currentpage = pages;
	else if (a.innerHTML === '上一页')
		currentpage -= 1;
	else if (a.innerHTML === '下一页')
		currentpage += 1;
	else
		currentpage = a.innerHTML;

	drawPages($ul, currentpage, pages, 5);
	$pagecontainer.empty();
	getcontent(domain + '/showByTypeandPlace.do?type=' + selecttype
			+ '&country=' + selectcountry, currentpage, $pagecontainer);
	return false;
}
function getcount() {
	currentpage = 1;
	$ul.empty();
	$pagecontainer.empty();
	myAjax("showByTypeandPlaceCount.do", {
		"type" : selecttype,
		"country" : selectcountry
	}, function(data) {
		pages = data['CountNums'];
		pages = Math.ceil(pages / 5)
		if (data['CountNums'] != 0) {
			drawPages($ul, currentpage, pages, 5);
			getcontent(domain + '/showByTypeandPlace.do?type=' + selecttype
					+ '&country=' + selectcountry, currentpage,
					$pagecontainer);
		}
	});

}
function changecontent(item) {

	if (selecttype == '')
		selecttype = '0';
	$('#type' + selecttype).attr("class", "am-radius");
	$('#type' + item).attr("class", "am-badge am-badge-success am-radius");
	if (item != 0)
		selecttype = item;
	else {
		selecttype = '';
		$('#type0').attr("class", "am-badge am-badge-success am-radius");
	}
	getcount();
}
function changecontentcountry(daima) {
	if (selectcountry == curruntCity)
		selectcountry = 'country0';

	$('#' + selectcountry).attr("class", "am-radius");
	$('#' + daima).attr("class", "am-badge am-badge-success am-radius");
	if (daima != 0)
		selectcountry = daima;
	else {
		$('#country0').attr("class", "am-badge am-badge-success am-radius");
		selectcountry = curruntCity;
	}
	getcount();
}
function getcontent(url, currentpage, $pagecontainer) {
	myAjax(url, {
		'page' : currentpage
	}, function(data) {
		drawEEContent($pagecontainer, data);
		ldata = data;
	});

}

